package com.wxyzz.canteenadmin.shop.employee.mapper;

import com.wxyzz.canteenadmin.shop.employee.VO.EmpUploadVO;
import com.wxyzz.canteenadmin.shop.employee.VO.EmployeeVO;
import com.wxyzz.canteenadmin.shop.employee.param.AddEmpParam;
import com.wxyzz.canteencommon.entity.shop.employee.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    //分页和模糊查询
    List<EmployeeVO> page (@Param("type")Integer type, @Param("name")String name);
    //根据id查询
    Employee selectById (Integer id);
    //删除
    int delById(Integer id);
    //批量删除
    int delBatch (@Param("ids") List<Integer> ids);
    //添加
    int insert (AddEmpParam addEmpParam);
    //更新
    int update (Employee employee);
    //批量插入
    void insertBatch (List<EmpUploadVO> list);
}
